const TokenKey = 'hrsaas-ihrm-token-jtjk'
const AddressKey = 'hrsaas-ihrm-address'
export function getToken() {
  return JSON.parse(localStorage.getItem(TokenKey)) ;
}

export function setToken(token) {
  localStorage.setItem(TokenKey, JSON.stringify(token));
}

export function removeToken() {
  localStorage.removeItem(TokenKey);
}


export function getAddress() {
  return JSON.parse(localStorage.getItem(AddressKey));
}

export function setAddress(token) {
  localStorage.setItem(AddressKey, JSON.stringify(token));
}

export function removeAddress() {
  localStorage.removeItem(AddressKey);
}
